package verify

import (
	"awesomeProject/app/request"
	"errors"
)

func ItemsIndicatePagination(r *request.ItemsIndicatePagination) error {
	if r.PageIndex == 0 {
		r.PageIndex = 1
	}
	if r.PageSize == 0 {
		r.PageSize = 30
	}

	return nil
}

func ItemFlowRank(r *request.ItemFlowRank) error {
	if r.ShopId == 0 {
		return errors.New("请选择店铺")
	}

	return nil
}
